Chapterá11.áTroubleshooting

Table of Contents

11.1. General
11.1.1. Collecting debugging information
11.1.2. Guest shows IDE errors for VDI on slow host file system
11.1.3. Responding to guest IDE flush requests
11.2. Windows guests
11.2.1. Windows boot failures (bluescreens) after changing VM configuration
11.2.2. Windows 2000 installation failures
11.2.3. How to record bluescreen information from Windows guests
11.2.4. No networking in Windows Vista guests
11.2.5. Windows guests may cause a high CPU load
11.3. Linux guests
11.3.1. Linux guests may cause a high CPU load
11.3.2. AMD Barcelona CPUs
11.4. Windows hosts
11.4.1. VBoxSVC out-of-process COM server issues
11.4.2. CD/DVD changes not recognized
11.4.3. Sluggish response when using Microsoft RDP client
11.4.4. Running an iSCSI initiator and target on a single system
11.5. Linux hosts
11.5.1. Linux kernel module refuses to load
11.5.2. Linux host CD/DVD drive not found
11.5.3. Linux host CD/DVD drive not found (older distributions)
11.5.4. Linux host floppy not found
11.5.5. Strange guest IDE error messages when writing to CD/DVD
11.5.6. VBoxSVC IPC issues
11.5.7. USB not working
11.5.8. PAX/grsec kernels
11.5.9. Linux kernel vmalloc pool exhausted

This chapter provides answers to commonly asked questions. In order to improve your user experience with VirtualBox, it is recommended to read this section to learn more about common pitfalls and get recommendations on how to use the product.

11.1.áGeneral

11.1.1.áCollecting debugging information

For problem determination, it is often important to collect debugging information which can be analyzed by VirtualBox support. This section contains information about what kind of information can be obtained.

Every time VirtualBox starts up a VM, a log file is created containing some information about the VM configuration and runtime events. The log file is called VBox.log and resides in the VM log file folder. Typically this will be a directory like this:

$HOME/.VirtualBox/Machines/{machinename}/Logs

When starting a VM, the configuration file of the last run will be renamed to .1, up to .3. Sometimes when there is a problem, it is useful to have a look at the logs. Also when requesting support for VirtualBox, supplying the corresponding log file is mandatory.

For convenience, for each virtual machine, the VirtualBox main window can show these logs in a window. To access it, select a virtual machine from the list on the left and select "Show logs..." from the "Machine" window.

11.1.2.áGuest shows IDE errors for VDI on slow host file system

Occasionally, some host file systems provide very poor writing performance and as a consequence cause the guest to time out IDE commands. This is normal behavior and should normally cause no real problems, as the guest should repeat commands that have timed out. However some guests (e.g. some Linux versions) have severe problems if a write to a VDI file takes longer than about 15 seconds. Some file systems however require more than a minute to complete a single write, if the host cache contains a large amount of data that needs to be written.

The symptom for this problem is that the guest can no longer access its files during large write or copying operations, usually leading to an immediate hang of the guest.

In order to work around this problem (the true fix is to use a faster file system that doesn't exhibit such unacceptable write performance), it is possible to flush the VDI after a certain amount of data has been written. This interval is normally infinite, but can be configured individually for each disk of a VM using the following command:

VBoxManage setextradata VMNAME 
           "VBoxInternal/Devices/piix3ide/0/LUN#[x]/Config/FlushInterval" [b]

The value [x] that selects the disk is 0 for the master device on the first channel, 1 for the slave device on the first channel, 2 for the master device on the second channel or 3 for the master device on the second channel. Only disks support this configuration option. It must not be set for CD-ROM drives.

The unit of the interval [b] is the number of bytes written since the last flush. The value for it must be selected so that the occasional long write delays do not occur. Since the proper flush interval depends on the performance of the host and the host filesystem, finding the optimal value that makes the problem disappear requires some experimentation. Values between 1000000 and 10000000 (1 to 10 megabytes) are a good starting point. Decreasing the interval both decreases the probability of the problem and the write performance of the guest. Setting the value unnecessarily low will cost performance without providing any benefits. An interval of 1 will cause a flush for each write operation and should solve the problem in any case, but has a severe write performance penalty.

Providing a value of 0 for [b] is treated as an infinite flush interval, effectively disabling this workaround. Removing the extra data key by specifying no value for [b] has the same effect.

11.1.3.áResponding to guest IDE flush requests

If desired, the virtual disk images (VDI) can be flushed when the guest issues the IDE FLUSH CACHE command. Normally these requests are ignored for improved performance. To enable flushing, issue the following command:

VBoxManage setextradata VMNAME 
           "VBoxInternal/Devices/piix3ide/0/LUN#[x]/Config/IgnoreFlush" 0

The value [x] that selects the disk is 0 for the master device on the first channel, 1 for the slave device on the first channel, 2 for the master device on the second channel or 3 for the master device on the second channel. Only disks support this configuration option. It must not be set for CD-ROM drives.

Note that this doesn't affect the flushes performed according to the configuration described in 11.1.2. Restoring the default of ignoring flush commands is possible by setting the value to 1 or by removing the key.